package com.course.domain.model;

import lombok.Data;

/**
 * Created by Justin on 2017/6/15.
 */
@Data
public class CourseWeek {
    private int partIdx;
    private CoursePlan[] plans = new CoursePlan[7];

    public CoursePlan getPlanByWeekDay(int weekDay) {
        return plans[weekDay - 1];
    }

    public void setPlanByWeekDay(int weekDay, CoursePlan plan) {
        plans[weekDay - 1] = plan;
    }
}
